import request from '/@/utils/request';
export function recordApi() {
	return {
		index: (params) => {
			return request({
				url: '/finance/record/index',
				method: 'get',
				params
			});
		},
		get_ratio: (params) => {
			return request({
				url: '/finance/record/get_ratio',
				method: 'get',
				params
			});
		},
		account: (data) => {
			return request({
				url: '/finance/record/account',
				method: 'post',
				data,
			});
		},
		download: (params) => {

			
			return request({
				url: '/finance/record/download',
				method: 'get',
				responseType: 'arraybuffer',
				params
			});
		},
		del: (data) => {
			return request({
				url: '/finance/record/del',
				method: 'post',
				data,
			});
		},
		account_one: (data) => {
			return request({
				url: '/finance/record/account_one',
				method: 'post',
				data,
			});
		},
		get_info: (params) => {
			return request({
				url: '/finance/record/get_info',
				method: 'get',
				params,
			});
		},
		approval_file: (data) => {
			return request({
				url: '/finance/record/approval_file',
				headers: { 'Content-Type': 'multipart/form-data' },
				method: 'post',
				data,
			});
		},
		
		account_file: (data) => {
			return request({
				url: '/finance/record/account_file',
				headers: { 'Content-Type': 'multipart/form-data' },
				method: 'post',
				data,
			});
		},
		get_count_id: (params) => {
			return request({
				url: '/finance/record/get_count',
				method: 'get',
				params
			});
		},
		systemType: (params) => {
			return request({
				url: '/statistics/systemType',
				method: 'get',
				params
			});
		}
	};
}